package com.zjsd.sqeybusiness.mapper;

import java.util.List;
import com.zjsd.sqeybusiness.domain.PrivacyPolicy;
import org.springframework.stereotype.Repository;

/**
 * 精品汇隐私条款Mapper接口
 *
 * @author Zheng
 * @date 2020-11-05
 */
@Repository
public interface PrivacyPolicyMapper
{
    /**
     * 查询精品汇隐私条款
     *
     * @param id 精品汇隐私条款ID
     * @return 精品汇隐私条款
     */
    public PrivacyPolicy selectPrivacyPolicyById(Integer id);

    /**
     * 查询精品汇隐私条款列表
     *
     * @param privacyPolicy 精品汇隐私条款
     * @return 精品汇隐私条款集合
     */
    public List<PrivacyPolicy> selectPrivacyPolicyList(PrivacyPolicy privacyPolicy);

    /**
     * 新增精品汇隐私条款
     *
     * @param privacyPolicy 精品汇隐私条款
     * @return 结果
     */
    public int insertPrivacyPolicy(PrivacyPolicy privacyPolicy);

    /**
     * 修改精品汇隐私条款
     *
     * @param privacyPolicy 精品汇隐私条款
     * @return 结果
     */
    public int updatePrivacyPolicy(PrivacyPolicy privacyPolicy);

    /**
     * 删除精品汇隐私条款
     *
     * @param id 精品汇隐私条款ID
     * @return 结果
     */
    public int deletePrivacyPolicyById(Integer id);

    /**
     * 批量删除精品汇隐私条款
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deletePrivacyPolicyByIds(Integer[] ids);
}
